package com.xca.znb.entity;

public class Cart {
    private int id ;
    private int goodsId ;
    private int num ;
    private String user ;

    public Cart(){}
    public Cart(int goodsId , int num , String user){
        this.goodsId = goodsId ;
        this.num = num ;
        this.user = user ;
    }
    public Cart(int id , int goodsId , int num , String user){
        this.id = id ;
        this.goodsId = goodsId ;
        this.num = num ;
        this.user = user ;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", num=" + num +
                ", user='" + user + '\'' +
                '}';
    }
}
